package top.ochiamalu.aioj.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.ochiamalu.aioj.domain.entity.Favor;
import top.ochiamalu.aioj.enums.FavorTypeEnum;

/**
 * 收藏服务
 *
 * @author ochiamalu
 * @date 2025/03/08
 */
public interface FavorService extends IService<Favor> {

    /**
     * 收藏
     *
     * @param questionId    题目ID
     * @param favorTypeEnum 点赞类型enum
     * @return {@link Boolean }
     */
    Boolean favor(Long questionId, FavorTypeEnum favorTypeEnum);
}
